package com.ncst.backend.service;

import com.ncst.backend.domain.MedicalRecord;
import com.ncst.backend.domain.vo.MedicalRecordVO;

import java.util.List;

/**
 * 病历服务接口
 */
public interface MedicalRecordService {
    MedicalRecord getById(Integer id);
    List<MedicalRecord> getAll();
    List<MedicalRecord> getByCondition(MedicalRecord medicalRecord);
    List<MedicalRecord> getByPage(Integer pageNum, Integer pageSize);
    Long countAll();
    Long countByCondition(MedicalRecord medicalRecord);
    boolean save(MedicalRecordVO medicalRecordVo);
    boolean saveBatch(List<MedicalRecord> list);
    boolean updateById(MedicalRecord medicalRecord);
    boolean removeById(Integer id);
    boolean removeByIds(List<Integer> ids);

    /**
     * 根据挂号ID查询病历
     * @param registerId 挂号ID
     * @return 病历信息
     */
    MedicalRecord getByRegisterId(Integer registerId);

    boolean menZhenQueZhen(String registerId, String diagnosis, String cure);
}
